<?php

function agenda($hora,$podologo){
	include_once 'conexao.php';
	
$query = mysql_query("SELECT a.hora, a.data, c.nome, c.sobrenome FROM tb_agenda a, tb_cliente c WHERE a.id_cliente=c.id AND a.id_funcionario=".$podologo." AND a.hora=".$hora);
	$row_agenda = mysql_fetch_array($query);
	$num = mysql_num_rows($query);
	if($num>0){
		$validacao = true;
		$row_agenda['nome'];
		$row_agenda['sobrenome'];
	}else{
		$validacao = false;
		
	}
}